package com.concurrent.chapter4.concurrent01;

import java.util.concurrent.ExecutorService;
import java.util.concurrent.Executors;

public class Run2 {
	public static void main(String[] args) {
		ExecutorService executorService = Executors.newCachedThreadPool();
		for (int i = 0; i < 10; i++) {
			executorService.execute(new Runnable() {
				@Override
				public void run() {
					System.out.println("run");
				}
			});
		}
	}
}
